package com.gcsoftware.beans;

import java.util.List;

/**
 * 分页
 * @author czp
 * date 2018-06-21
 */
public class PageObj<T> {
    private int page; // 数据页码
    private long total; // 总页码
    private int records; // 数据总记录数
    private List<T> rows; // 数据模型

    public PageObj() {
    }

    public PageObj(int page, int total, int records, List<SysLog> logsList) {
        this.page = page;
        this.total = total;
        this.records = records;
        this.rows = (List<T>) logsList;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getRecords() {
        return records;
    }

    public void setRecords(int records) {
        this.records = records;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
